package org.lib.data.user.api.feign;

import org.lib.data.user.api.dto.AddUserDTO;
import org.lib.data.user.api.dto.UpdateUserDTO;
import org.lib.data.user.api.vo.UserVO;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

/**
 * UserFeign的降级类
 * @author ben
 * @date 2021-09-03 14:29:50 CST
 */
@Component
@Slf4j
public class UserFeignFallback implements UserFeign {

	@Override
	public Long addUser(AddUserDTO dto) {
		log.error("添加用户故障");
		return null;
	}

	@Override
	public UserVO getUser(Long id) {
		log.error("获取用户故障-byId");
		return null;
	}

	@Override
	public UserVO getUserByEmail(String email) {
		log.error("获取用户故障-byEmail");
		return null;
	}

	@Override
	public UserVO getUserByPhone(String phone) {
		log.error("获取用户故障-byPhone");
		return null;
	}

	@Override
	public Boolean delUser(Long id) {
		log.error("删除用户故障");
		return null;
	}

	@Override
	public UserVO updateUser(UpdateUserDTO dto) {
		log.error("更新用户故障");
		return null;
	}

}
